#!/usr/bin/env python
# -*- encoding: utf-8 -*-
'''
@File    :   search_result_test.py    
@Contact :   pengwei.sun@aihuishou.com
@License :   (C)Copyright aihuishou

@Modify Time      @Author       @Version    @Desciption
------------      -----------   --------    -----------
2022-01-05 15:38   pengwei.sun      1.0         None
'''
import os
import sys
sys.path.append(os.getcwd())
from src.utils.config import logger
from src.mobile.levelrate.reverse.sku2_skulevel_period_price import get_period_price_fun
from src.mobile.levelrate.reverse.function_utils import save_pickle_data,load_pickle_data,check_conflict_file
import pickle
from src.mobile.levelrate.reverse.sku2_common_variable import  FILE_DIR
import pandas as pd
process_df=pd.read_csv('/data/sunpengwei/tmp/sku2_price_detail.csv',index_col=0)
# 6609739
# period_data = get_period_price_fun('2022-02-23', flag=True)

sku2_price_level_reverse_process1_data = load_pickle_data(FILE_DIR + 'sku2_price_level_reverse_process1_data.pkl')
# save_pickle_data(FILE_DIR + 'sku2_price_property_reverse_calculation_process2_df.pkl', result)
# result = load_pickle_data(FILE_DIR +'sku2_price_property_reverse_calculation_process2_df.pkl')
reverse_df1 = load_pickle_data(FILE_DIR + 'sku2_price_property_reverse_calculation_process2_df.pkl')
sku2_price_property_process4_data_calculation2 = load_pickle_data(FILE_DIR + 'sku2_price_property_process4_data_calculation2.pkl')
sku2_price_reverse2_process3_data = load_pickle_data(FILE_DIR + 'sku2_price_reverse2_process3_data.pkl')

fetch_df = load_pickle_data(FILE_DIR + 'sku2_price_fetch_process_data.pkl')
process_df1=pd.read_csv(FILE_DIR + 'sku2_final_price.csv',index_col=0)
logger.info('dss')

